
package cn.afterturn.oneopen.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户基本信息
 *
 * @author JueYue
 * @Date 2019-03-24 13:41:08
 */
@Data
@TableName(value = "gw_org_info")
public class OrgInfoModel extends Model<OrgInfoModel> {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @TableField(value = "account_no", strategy = FieldStrategy.NOT_EMPTY)
    private String accountNo;

    @TableField(value = "name", strategy = FieldStrategy.NOT_EMPTY)
    private String name;

    @TableField(value = "appid", strategy = FieldStrategy.NOT_EMPTY)
    private String appid;

    @TableField(value = "type")
    private Integer type;

    @TableField(value = "balance")
    private Long balance;

    @TableField(value = "currency")
    private Integer currency;

    @TableField(value = "open_time")
    private Date openTime;

    @TableField(value = "is_recharge")
    private Integer isRecharge;

    @TableField(value = "is_cash")
    private Integer isCash;

    @TableField(value = "is_balance_negative")
    private Integer isBalanceNegative;

    @TableField(value = "user_name", strategy = FieldStrategy.NOT_EMPTY)
    private String userName;

    @TableField(value = "bal_check", strategy = FieldStrategy.NOT_EMPTY)
    private String balCheck;

    @TableField(value = "token", strategy = FieldStrategy.NOT_EMPTY)
    private String token;

    @TableField(value = "user_phone", strategy = FieldStrategy.NOT_EMPTY)
    private String userPhone;

    @TableField(value = "crt_time")
    private Date crtTime;

    @TableField(value = "CRT_USER_ID")
    private Integer crtUserId;

    @TableField(value = "mdf_time")
    private Date mdfTime;

    @TableField(value = "mdf_user_id", strategy = FieldStrategy.NOT_EMPTY)
    private String mdfUserId;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
